﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.Common;

namespace ZK.UserControlLibrary
{
    public partial class foot : UserControl
    {

        private WFAutoSizeHelper wFAutoSizeHelper = new WFAutoSizeHelper();
        public foot()
        {
            InitializeComponent();

            wFAutoSizeHelper.GetAllInitInfo(this.Controls[0], this);
            Common.DelegateHelper.SendWidthHeightEvent += SendWidthHeight;
        }
        private void SendWidthHeight(int Width, int height)
        {
            if (wFAutoSizeHelper.ControlsInfo.Count > 0)//如果字典中有数据，即窗体改变
            {
                wFAutoSizeHelper.ControlsChangeInit(Width, height);//表示pannel控件
                wFAutoSizeHelper.ControlsChange(this.Controls[0]);
            }
        }

        private void Timer1_Tick(object sender, EventArgs e)
        {
            toolStripStatusLabel2.Text = "系统当前时间：" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
